import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgValidateForm } from '@farris/devkit';
var DetailFormComponentViewmodelForm = /** @class */ (function (_super) {
    tslib_1.__extends(DetailFormComponentViewmodelForm, _super);
    function DetailFormComponentViewmodelForm() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgFormControl({
            id: 'zcbm_d749e2ae_n8fg',
            name: "{{zcbm_d749e2ae_n8fg}}",
            binding: 'zcbm',
            updateOn: 'blur',
            defaultI18nValue: '支出分类编码',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "zcbm", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'zcfl_1e217793_cbrk',
            name: "{{zcfl_1e217793_cbrk}}",
            binding: 'zcfl',
            updateOn: 'blur',
            defaultI18nValue: '支出分类',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "zcfl", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'zcrq_7248720c_h68x',
            name: "{{zcrq_7248720c_h68x}}",
            binding: 'zcrq',
            updateOn: 'blur',
            defaultI18nValue: '支出日期',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "zcrq", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'zcbz_2e90cb79_q6yt',
            name: "{{zcbz_2e90cb79_q6yt}}",
            binding: 'zcbz',
            updateOn: 'blur',
            defaultI18nValue: '支出备注',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "zcbz", void 0);
    DetailFormComponentViewmodelForm = tslib_1.__decorate([
        Injectable(),
        NgValidateForm({
            formGroupName: '支出信息',
            enableValidate: true
        }),
        Injectable()
    ], DetailFormComponentViewmodelForm);
    return DetailFormComponentViewmodelForm;
}(Form));
export { DetailFormComponentViewmodelForm };
